<?php
require_once 'application/models/AbstractModel.php';

class Serie extends AbstractModel
{
    protected $_name = 'Serie';
    
    protected $_referenceMap    = array(
        'Serie' => array(
            'columns'           => 'batterie_id',
            'refTableClass'     => 'Batterie',
            'refColumns'        => 'id',
    		'onDelete'          => self::CASCADE
        )
    );
    
    function __construct() {
        parent::__construct();
    	$this->_fieldsToDisplay = array('id', 'nom', 'description', 'serie_number');
	}
}

